package com.uni.tag_group;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.uni.tag_group.activity.GradientBgActivity;
import com.uni.tag_group.activity.TagArrowActivity;
import com.uni.tag_group.activity.TagWordWrapActivity;


public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        // 黑白模式：
//        View decorView = getWindow().getDecorView();
//        Paint paint = new Paint();
//        ColorMatrix cm = new ColorMatrix();
//        cm.setSaturation(0);
//        paint.setColorFilter(new ColorMatrixColorFilter(cm));
//        decorView.setLayerType(View.LAYER_TYPE_HARDWARE,paint);
    }

    public void clickView(View view){
        switch (view.getId()) {
            case R.id.btn1:
                startActivity(new Intent(MainActivity.this, TagArrowActivity.class));
                break;
            case R.id.btn2:
                startActivity(new Intent(MainActivity.this, TagWordWrapActivity.class));
                break;
            case R.id.btn3:
                startActivity(new Intent(MainActivity.this, GradientBgActivity.class));
                break;
        }
    }
}